package cn.mldn.homework.annotationCreateCRUD;

@Table("product")
public class ProductBean
{
	// 对主键加注解
	@PrimaryKey("id")
	private int id;
	private String name;
	private float price;

	@Column("id")
	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	@Column("name")
	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	@Column("price")
	public float getPrice()
	{
		return price;
	}

	public void setPrice(float price)
	{
		this.price = price;
	}
}